---
title: "Patch artifact metadata"
method: PATCH
path: "/repo/{channel_name}/{ckey:[^/].*?}"
tags: ["artifacts"]
---

# Patch artifact metadata

`PATCH /repo/{channel_name}/{ckey:[^/].*?}`

## Request

- Base URL: `https://api.anaconda.cloud/api`
- URL: `https://api.anaconda.cloud/api/repo/{channel_name}/{ckey:[^/].*?}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Auth`
- TypeScript: <https://skmtc.dev/anaconda/apis/anaconda-server-api/docs/repo/:channel_name/:ckey:[^/].*%3F/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `channel_name` string, required
- `ckey` string, path, required

## Request body

- ArtifactMetadata: Artifact's metadata

## Response `204`

ok

## Other responses

- `400`: metadata format is invalid
- `404`: file not found
- `422`: proxied file is broken

---

[API](https://skmtc.dev/anaconda/apis/anaconda-server-api.md) - [All operations](https://skmtc.dev/anaconda/apis/anaconda-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anaconda/apis/anaconda-server-api/revisions/6aef0cb7a151?raw)
